from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.orm import DeclarativeBase


# 抽象基类
class Base(DeclarativeBase):
    pass


db = SQLAlchemy(model_class=Base)


def init_db(app):
    """

    :param app:
    """
    db.init_app(app)
